home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 - Homepage / CHIP.BIN / share / htmledit / bashhtml / bashhtml.exe / %AppDir% / scripts / Random Content.txt < prev    next >
Encoding:
Text File  |  2003-09-01  |  1.0 KB  |  18 lines

  1. [DESCRIPTION]Checks to see if the visitor is using the proper resolution for your page. If they are not, they will receive a warning message.[/DESCRIPTION]
  2.  
  3. [HEAD CODE]<SCRIPT LANGUAGE="JavaScript1.2">
  4. <!--
  5. var desiredwidth = 1024;
  6. var desiredheight = 768;
  7. if (screen.width != desiredwidth || screen.height != desiredheight) {
  8. alert('This site is best viewed with a resolution of '
  9. + desiredwidth + 'x' + desiredheight + ', '
  10. + 'but your screen resolution is ' + screen.width + 'x'
  11. + screen.height + '. Please change your screen resolution if possible.');
  12. }
  13. -->
  14. </script>[/HEAD CODE]
  15.  
  16. [BODY CODE][/BODY CODE]
  17.  
  18. [NOTES]Change the desired width and height settings to that which your site is designed for. Also, you should only use this script if your site can only be shown at the resolution you have chosen, because your visitors will probably not change their resolution if your site looks fine to them using their current settings and they will be annoyed if they are given a warning every time they visit your site.[/NOTES]